package com.iotek.ssm.service.impl;

import com.iotek.ssm.mapper.PerformanceMapper;
import com.iotek.ssm.pojo.CustomQueryVo;
import com.iotek.ssm.pojo.Performance;
import com.iotek.ssm.service.PerformanceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("performanceService")
public class PerformanceServiceImpl implements PerformanceService {

    @Autowired
    private PerformanceMapper performanceMapper;

    public void addPerformance(Performance performance) throws Exception {
        performanceMapper.addPerformance(performance);
    }

    public List<Performance> findPerformance(CustomQueryVo customQueryVo) throws Exception {
        return performanceMapper.findPerformances(customQueryVo);
    }

    public void addPerformances(List<Performance> performances) throws Exception {
        performanceMapper.addPerformances(performances);
    }
}
